import request from '../utils/request'
//创建预订单
export const preOrder = (data) => {
    return request({
        url: '/preOrder/create',
        method: 'post',
        data: data
    })
}

//创建 订单
export const createOrder = (data) => {
    return request({
        url: '/order/create',
        method: 'post',
        data: data
    })
}
//判断 是否已经支付成功
export const orderDetail = (orderId) => {
    return request({
        url: '/order/detail',
        method: 'post',
        data: { orderId: orderId }
    })
}